<?php         
$this->title = "My campaign";
$this->headTitle($this->title);
?>
<p><a href="<?php echo $this->url(array('controller'=>'campaign', 
        'action'=>'add'));?>">Add new campaign</a></p>
<table>
<tr>
    <th>Title</th>
    <th>Created User</th>
    <th>Created Time</th>
    <th>&nbsp;</th>
</tr>
<?php foreach($this->campaigns as $campaign) : ?>
<tr>
    <td><?php echo $this->escape($campaign['title']);?></td>
    <td><?php echo $this->escape($campaign['created_username']);?></td>
    <td><?php echo $this->escape($campaign['created_date']);?></td>
    <td>
        <a href="<?php echo $this->url(array('controller'=>'campaign', 
            'action'=>'edit', 'id' => $campaign['id']));?>">Edit</a>
        <a href="<?php echo $this->url(array('controller'=>'campaign', 
            'action'=>'delete', 'id' => $campaign['id']));?>">Delete</a>
    </td>
</tr>
<?php endforeach;?>
</table>